package com.mlj.service;

import com.mlj.pojo.Dormitory;
import com.mlj.util.Result;

import java.util.List;

public interface DormitoryService {
    Result getDormitoryList(Integer page, Integer limit);

    Result delDormitoryById(Integer id);

    Result deleteBatch(Integer[] ids);

    Result addDormitory(Dormitory dormitory);

    Result search(String name, Integer page, Integer limit);

    List<Dormitory> getDormitoryName();

    Result updateDormitory(Dormitory dormitory);

    Result addHeader(Integer dormitoryId ,String bedName);

    Dormitory selectDormitoryById(Integer bedDormitory);
}
